3.3.81 \(\int \frac {1}{x^2 (1+b x)} \, dx\)

Optimal. Leaf size=19 \[ -b \log (x)+b \log (b x+1)-\frac {1}{x} \]

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 19, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {44} \begin {gather*} -b \log (x)+b \log (b x+1)-\frac {1}{x} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[1/(x^2*(1 + b*x)),x]

[Out]

-x^(-1) - b*Log[x] + b*Log[1 + b*x]

Rule 44

Int[((a_) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d*
x)^n, x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[b*c - a*d, 0] && ILtQ[m, 0] && IntegerQ[n] &&  !(IGtQ[n, 0] && L
tQ[m + n + 2, 0])

Rubi steps

\begin {align*} \int \frac {1}{x^2 (1+b x)} \, dx &=\int \left (\frac {1}{x^2}-\frac {b}{x}+\frac {b^2}{1+b x}\right ) \, dx\\ &=-\frac {1}{x}-b \log (x)+b \log (1+b x)\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 19, normalized size = 1.00 \begin {gather*} -b \log (x)+b \log (b x+1)-\frac {1}{x} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[1/(x^2*(1 + b*x)),x]

[Out]

-x^(-1) - b*Log[x] + b*Log[1 + b*x]

________________________________________________________________________________________

IntegrateAlgebraic [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{x^2 (1+b x)} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

IntegrateAlgebraic[1/(x^2*(1 + b*x)),x]

[Out]

IntegrateAlgebraic[1/(x^2*(1 + b*x)), x]

________________________________________________________________________________________

fricas [A]  time = 0.93, size = 21, normalized size = 1.11 \begin {gather*} \frac {b x \log \left (b x + 1\right ) - b x \log \relax (x) - 1}{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x^2/(b*x+1),x, algorithm="fricas")

[Out]

(b*x*log(b*x + 1) - b*x*log(x) - 1)/x

________________________________________________________________________________________

giac [A]  time = 0.92, size = 21, normalized size = 1.11 \begin {gather*} b \log \left ({\left | b x + 1 \right |}\right ) - b \log \left ({\left | x \right |}\right ) - \frac {1}{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x^2/(b*x+1),x, algorithm="giac")

[Out]

b*log(abs(b*x + 1)) - b*log(abs(x)) - 1/x

________________________________________________________________________________________

maple [A]  time = 0.01, size = 20, normalized size = 1.05 \begin {gather*} -b \ln \relax (x )+b \ln \left (b x +1\right )-\frac {1}{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/x^2/(b*x+1),x)

[Out]

-1/x-b*ln(x)+b*ln(b*x+1)

________________________________________________________________________________________

maxima [A]  time = 1.32, size = 19, normalized size = 1.00 \begin {gather*} b \log \left (b x + 1\right ) - b \log \relax (x) - \frac {1}{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x^2/(b*x+1),x, algorithm="maxima")

[Out]

b*log(b*x + 1) - b*log(x) - 1/x

________________________________________________________________________________________

mupad [B]  time = 0.04, size = 16, normalized size = 0.84 \begin {gather*} 2\,b\,\mathrm {atanh}\left (2\,b\,x+1\right )-\frac {1}{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(x^2*(b*x + 1)),x)

[Out]

2*b*atanh(2*b*x + 1) - 1/x

________________________________________________________________________________________

sympy [A]  time = 0.18, size = 14, normalized size = 0.74 \begin {gather*} b \left (- \log {\relax (x )} + \log {\left (x + \frac {1}{b} \right )}\right ) - \frac {1}{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x**2/(b*x+1),x)

[Out]

b*(-log(x) + log(x + 1/b)) - 1/x

________________________________________________________________________________________